from tkinter import *
window = Tk()

v1 = IntVar()
v2 = IntVar()
v3 = IntVar()
v4 = IntVar()
Checkbutton(window,text = "张三",variable = v1).pack(anchor = W)
Label(window,textvariable = v1).pack()
Checkbutton(window,text = "李四",variable = v2).pack(anchor = W)
Label(window,textvariable = v2).pack()
Checkbutton(window,text = "王麻子",variable = v3).pack(anchor = W)
Label(window,textvariable = v3).pack()
Checkbutton(window,text = "王二狗",variable = v4).pack(anchor = W)
Label(window,textvariable = v4).pack()

mainloop()
